//路由文件

import type { RouteRecordRaw } from "vue-router";
const routes: RouteRecordRaw[] = [
  {
    path: '/',
    redirect: '/homepage/tuijian',
  },
  {
    path: '/rank',
    name: 'Rank',
    component: () => import('@/components/Rank/index.vue'),
  },

  // {
  //   path: '/tuijian',
  //   name: 'index',
  //   component: () => import('@/pages/index/index.vue'),
  // },
  // {
  //   path: '/youshengshu',
  //   name: 'audiobook',
  //   component: () => import('@/pages/audiobook/index.vue'),
  // },


  {
    path: '/homepage',
    name: 'homepage',
    component: () => import('@/pages/homePage/index.vue'),
    children: [

      {
        path: 'tuijian',
        name: 'index',
        component: () => import('@/pages/index/index.vue'),
      },
      {
        path: 'youshengshu',
        name: 'audiobook',
        component: () => import('@/pages/audiobook/index.vue'),
      },
      {
        path: 'youshengshu',
        name: 'audiobook',
        component: () => import('@/pages/audiobook/index.vue'),
      },
      {
        path: 'youshengshu',
        name: 'audiobook',
        component: () => import('@/pages/audiobook/index.vue'),
      },
      {
        path: 'youshengshu',
        name: 'audiobook',
        component: () => import('@/pages/audiobook/index.vue'),
      },
      {
        path: 'youshengshu',
        name: 'audiobook',
        component: () => import('@/pages/audiobook/index.vue'),
      },
      {
        path: 'youshengshu',
        name: 'audiobook',
        component: () => import('@/pages/audiobook/index.vue'),
      },
      {
        path: 'youshengshu',
        name: 'audiobook',
        component: () => import('@/pages/audiobook/index.vue'),
      },
      {
        path: 'youshengshu',
        name: 'audiobook',
        component: () => import('@/pages/audiobook/index.vue'),
      },
      {
        path: 'youshengshu',
        name: 'audiobook',
        component: () => import('@/pages/audiobook/index.vue'),
      },
    ]
  },
  {
    path: "/coursedetail",
    name: "coursedetail",
    component: () => import("@/pages/CourseDetail/index.vue"),
  },
  {
    path: '/download',
    name: 'download',
    component: () => import('@/components/download/index.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/components/login/index.vue')
  },
  {
    path: '/classify',
    name: 'classify',
    component: () => import('@/components/classify/index.vue'),
  },
  {
    path: '/listenlist',
    name: 'listenList',
    component: () => import('@/components/listenList/index.vue')
  },



]
export default routes


